'use strict';
// 手机壁纸
const {
  get
} = require('./get');
const {
  add
} = require('./add/index.js')
const {
  delete1
} = require('./delete/index.js')
const {
  search
} = require('./search/index.js')
const db = uniCloud.database()

exports.main = async (event, context) => {
  switch (event.type) {
    case 'get':
      return await get(event);
    case 'add':
      return await add(event);
    case 'delete':
      return await delete1(event);
    case 'search':
      return await search(event);
  }
}